﻿Public Class add
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub cmdsum_Click(ByVal sender As Object, ByVal e As EventArgs) Handles cmdsum.Click
        Dim num1, num2, answer As Single
        num1 = txtfirstnum.Text
        num2 = txtsecondnum.Text
        answer = num1 + num2
        lblanswer.Text = CStr(answer)

    End Sub
End Class